package cn.ainit.yz.cloutStock;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.yz.cloutStock.entity.CloutStock;
import cn.ainit.yz.cloutStock.entity.CloutStockItem;
@Service
public class CloutStockServiceImpl implements CloutStockService {
	
	private CloutStockDao cloutStockDao;
	@Resource
	public void setCloutStockDao(CloutStockDao cloutStockDao) {
		this.cloutStockDao = cloutStockDao;
	}
	
	@Override
	public boolean saveCloutStock(CloutStock cloutStock,
			List<CloutStockItem> cloutStockItems) throws Exception {
		return this.cloutStockDao.saveCloutStock(cloutStock, cloutStockItems);
	}

	@Override
	public boolean updCloutStock(CloutStock cloutStock,
			List<CloutStockItem> cloutStockItems) throws Exception {
		return this.cloutStockDao.updCloutStock(cloutStock, cloutStockItems);
	}

}
